/// 响应主体内容
class HomepageClientUserStatisticsDto {
  /// 今日注册数
  final int? todayRegistNum;
  /// 今日提现金额，单位奈拉
  final int? todayWithdrawAmount;
  /// 今日核销金额，单位美元
  final int? todayWriteoffAmount;
  /// 总注册数
  final int? totalRegistNum;
  /// 总提现金额，单位奈拉
  final int? totalWithdrawAmount;
  /// 总核销金额，单位美元
  final int? totalWriteoffAmount;
  /// 当前账户余额总额，单位奈拉
  final int? totalBalanceAmount;

  HomepageClientUserStatisticsDto({
    this.todayRegistNum,
    this.todayWithdrawAmount,
    this.todayWriteoffAmount,
    this.totalRegistNum,
    this.totalWithdrawAmount,
    this.totalWriteoffAmount,
    this.totalBalanceAmount,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (todayRegistNum != null) data['todayRegistNum'] = todayRegistNum;
    if (todayWithdrawAmount != null) data['todayWithdrawAmount'] = todayWithdrawAmount;
    if (todayWriteoffAmount != null) data['todayWriteoffAmount'] = todayWriteoffAmount;
    if (totalRegistNum != null) data['totalRegistNum'] = totalRegistNum;
    if (totalWithdrawAmount != null) data['totalWithdrawAmount'] = totalWithdrawAmount;
    if (totalWriteoffAmount != null) data['totalWriteoffAmount'] = totalWriteoffAmount;
    if (totalBalanceAmount != null) data['totalBalanceAmount'] = totalBalanceAmount;
    return data;
  }

  factory HomepageClientUserStatisticsDto.fromJson(Map<String, dynamic> json) {
    return HomepageClientUserStatisticsDto(
      todayRegistNum: json['todayRegistNum'],
      todayWithdrawAmount: json['todayWithdrawAmount'],
      todayWriteoffAmount: json['todayWriteoffAmount'],
      totalRegistNum: json['totalRegistNum'],
      totalWithdrawAmount: json['totalWithdrawAmount'],
      totalWriteoffAmount: json['totalWriteoffAmount'],
      totalBalanceAmount: json['totalBalanceAmount'],
    );
  }
}